package poo.GUI;

import java.awt.*;
import javax.swing.*;

public class FinestraChiudibile {

	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				JFrame f = new Finestra();
				f.setVisible(true);
				JPanel p = new JPanel();
				p.setLayout(new GridLayout(4, 4));
				int i = 0;
				while (i < 16) {
					JButton a = new JButton("0" + i);
					p.add(a);
					i++;
				}
				f.add(p);
			}
		});

	}
}
